<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
    <!--禁止缩放-->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="Part Ern" />
    <meta name="keywords" content="Part Ern" />
    <meta name="format-detection" content="telephone=no" />
    <!--禁止ios自动识别数字为手机号-->
    <link type="text/css" href="<?= $this->__STATIC__ ?>layui/css/layui.css" rel="stylesheet" />
    <link type="text/css" href="<?= $this->__STATIC__ ?>css/base1.css" rel="stylesheet" />
    <link type="text/css" href="<?= $this->__STATIC__ ?>css/page1.css" rel="stylesheet" />
    <link type="text/css" href="<?= $this->__STATIC__ ?>css/swiper.min1.css" rel="stylesheet" />
    <title>艺栢图库</title>
    <script type="text/javascript">
        document.oncontextmenu=new Function("event.returnValue=false;");
        document.onselectstart=new Function("event.returnValue=false;");
    </script>
    <script type="text/javascript" src="<?= $this->__STATIC__ ?>js/jquery.min.js"></script>
</head>
<object id="AuthIE" name="AuthIE" width="0px" height="0px"
        codebase="DogAuth.CAB#version=2,3,1,58083"
        classid="CLSID:05C384B0-F45D-46DB-9055-C72DC76176E3">
</object>
<script type="text/javascript" src="<?= $this->__STATIC__ ?>js/Func.js"></script>
    <script language="javascript">

var dogNotPresent = false;
var authCode = "";

//Callback function, if the dog has been removed the function will be called.
function removeDog()
{
    reportStatus(7);
}

//Callback function, if the dog still exists the function will be called.
function insertDog()
{
    window.location.href = "login.php";
}

function checkDog()
{   
    var errorinfo2 = $("#errorinfo").html();
    <?php
    $jump = $this->jump['jump'];
    if ($jump != 1):
    ?>
    if (errorinfo2.indexOf("Required SuperDog not found") >= 0) {
        //登出
        console.log(44);
        // window.location.href = "/loginOut";
    }
    <?php 
    endif;
    ?>
    dognone = "nonge";
    var stat = "";
    var scope = "<dogscope/>";

    //Get Auth Code
    if ("" == authCode) {
        //换成ajax到后台取code
        authCode = 'AQAAAJ0cMADlNsP+mEFT45IHVN13tsDs67IqO1wUV78l+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M6MUQEhgEZdhFLHiZ658Bi4fceBVb2XbC0wUQ51T7m0RoQcvyb/FVd3Ms3V2SPDQTWCHCTpb3z+fKdCKdtUj5z1mn25jYyh3nBJJ1altDZKTXkrnwchhj7tGP52dGWxS5dLcByJplGaf4k87i0l6OThxwXz6h8jS4kUfJfcfNjAcWitYNan2GLQVe1E9a0wVue1ZDp9zvOfdTwdENpfT6SSdH5DJhhqhD7B0FN/Uh3BEraGS5FQ7xda9WsyV72HHW8gndXLCyq6sbotUSjVxRuEZE9eRsFKzOjbS6pn/o6cYcKv2Nob4SSiL+DAxk+h88dh4P6uobmCpEMnC/ANaaOczbqezI5vdYVJqqiBWFIlwXf4kB2ur4PGHV6Gmf8b14r4FWpr2EsUrcotNcN639Xi5+op6g8zSWXkI7LTMYe2x3bAX+IPS1pqKajr8YZsvL7Psm9kJ3fAycbuhp0vFczMiGf7cBZziByJGeJeH6mhd2vOwsVmP07USaOu4yTOrcLTuS5Zmjza73kOzklJFooOtiprspI3KcC4DlWZ5vPhYKRWLkaD7s+y6Kt6utmr9aS8Cc6CyTJ6TgTeFK8SXlgThvIkwZwg0zjLlsEqAj0cBGbcXhAuz8Pa6Xz1I0J7LcAoj8Vn7+9eBkta8xHOQLS2S8fnJHERyCUerXb4jqQT6M5a/aF70GF6kdbOvIaCeaVBqVCVeCp8pBEmBqLICVRGqgrB0v3JDfDs783m5Jzc36hhHIh49ApluAQSAT4sW1+nkI8KR78QgWSKJfodNgx/+zdo3MdMgUwymw31okaP0+MB28V+MDB8xQe0u1BNrRlcn/Qm8XrEdlWmHIWPH5sKELkYS7f/o6feP58lznIGVAmVIJU3WLTg5hz51rdAYSn5xJDrVIoEyVGNPBfX4Z7zGDp+OlemsVAHSxF6pTY98+6lg==';
    }
    
    //Get object
    objAuth = getAuthObject();
    
    if (navigator.userAgent.indexOf("Chrome") > 0) {
        objAuth.GetUserNameEx(scope, authCode);
    }
    else {
        //Open
        stat = objAuth.Open(scope, authCode);

        if(0 != stat)
        {
            dogNotPresent = true;
            reportStatus(stat);
        }
        else
        {
            if (dogNotPresent == true)
            {
                dogNotPresent = false;
                window.location.href = "/Login";
            }
        }
    }

    //Execute the check again after 2 seconds
    setTimeout(checkDog, 2000);
}

//Load callback functions, insertDog() and removeDog()
function loadFunc()
{   
    var objAuth;
    
    //Get object
    objAuth = getAuthObject();      
    
    if(navigator.userAgent.indexOf("Window")>0)
    {
        //Windows
        if (window.ActiveXObject || "ActiveXObject" in window)  //IE
        {
            objAuth.SetCheckDogCallBack("insertDog", "removeDog");
        }
        else if (navigator.userAgent.indexOf("Chrome") > 0)  //Chrome
        {
            window.addEventListener("message", function (event) {
                if (event.source != window)
                    return;
                if (event.data.type == "SNTL_FROM_HOST") {
                    var ReturnText = event.data.text;
                    if ("GetUserNameEx" == ReturnText.InvokeMethod) {
                        if (0 == ReturnText.Status) {
                            document.getElementById("username").value = ReturnText.UserNameStr;

                            lastStatus = 0;
                            if (dogNotPresent) {
                                dogNotPresent = false;
                                clearInfo();
                            }
                            return;
                        }
                        else {
                            document.getElementById("username").value = "";
                            reportStatus(parseInt(ReturnText.Status));
                            lastStatus = ReturnText.Status;
                            if (false == dogNotPresent) {
                                dogNotPresent = true;
                            }
                            return;
                        }
                    }
                    else if ("GetDigestEx" == ReturnText.InvokeMethod) {
                        if (0 == ReturnText.Status) {
                            var stat;
                            var dogID;
                            var digest;
                            dogID = ReturnText.DogIdStr;
                            digest = ReturnText.DigestStr;
                            
                            document.getElementById("dogid").value = dogID;
                            document.getElementById("response").value = digest;
                            
                            stat = doAuth(dogID, digest);

                            if (stat != 0) {
                                reportStatus(stat);
                                return;
                            }
                            else {
                                document.forms["login"].submit();
                            }

                            return;
                        }
                        else {
                            reportStatus(parseInt(ReturnText.Status));
                            return;
                        }
                    }
                    else {
                        return;
                    }
                }
            }, false);
            
            setTimeout(checkDog, 1000);         
        }
        else
        {
            setTimeout(checkDog, 1000);
        }
    }
    else if(navigator.userAgent.indexOf("Mac")>0)
    {
        setTimeout(checkDog, 1000);
    }
    else if(navigator.userAgent.indexOf("Linux")>0)
    {
        setTimeout(checkDog, 1000);
    }
    else
    {
        ;
    }
}

loadFunc();
</script>
    <p  id="errorinfo" style="color: #999999" style="font-size=13; display: none;"></p>
    <input type="hidden" name="username" id="username">
    <input type="hidden" name="password" id="password">
    <input type="hidden" name="dogid" id="dogid">
    <input type="hidden" name="response" id="response">

      <script language="javascript">
        try
        {
            var stat = 0;
            var objAuth = "";
            var scope = "<dogscope/>";
            
            embedTag();
            
            //Get object
            objAuth = getAuthObject();
            
            //Get Auth Code
            if ("" == authCode) {
                authCode = 'AQAAAJ0cMADlNsP+mEFT45IHVN13tsDs67IqO1wUV78l+Vp/D1mvpmO+2fxbQ4pY4XivhtI11v9o6Au3oBFKokkhJyW1W25oWxH38aCY8iAOzphsHJ8knGhe7j5TB7TW33dGQpa31EUwieINazARprdozo6cfayCn69WWHyN6fgNdtp0Y4pSo22NAKejZMLuTgKy6NyB7kNVbLFVd8QKCj/CNEj5VLK4KwEDyzpcn9mixi/0cgN3GdnhAWjlHwQTxy0xs06BpDHzgmh+F0eV8GJ/7zOo8eog5VW+5keaVkfbq6faJXIxbfoeTH8s9Oxr9Kerq4eQ9zl50WrZg3MRIPkZkebPQMg8ILr1NmrlK6b9CwSoPTMtiKQlI8N6QaLhQwYjrs+yUW0p8OOfd94Vd9i8LR1V01GexX8lOpFr8QzuuKPa76Eno+JOh8+cvAdWBXiFieGE5u1xt8U0pijoCy6VMrJAD7vItEaDmyPIvnc/ju1F52Bp1oe+b0phBQLYgHTR2N9GB28bQ7ToPQpmxSdt/zFHgqfgLnPVySaEqJtGBhrRdND2Cj6iIu62yfzGEJOHwZnWt4PF8DEMFAeRjI3qo++KoPe9kRKhZxCgL4BQz8Ur6/Oi+QMqMK68f5f/vyC5ptlP85bwOmkeQbzSyRZs7b7Kcrjm/zuYeicC2isdPTa7rflAjPeXz0QlSYpEPf7fZIzPPCgWujXXtANGBV3OIkmI8jRrg2d1j2hGh0n0r8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eaVBqVCVeCp8pBEmBqLICVRGqgrB0v3JDfDs783m5Jzc36hhHIh49ApluAQSAT4sW1+nkI8KR78QgWSKJfodNgx/+zdo3MdMgUwymw31okaP0+MB28V+MDB8xQe0u1BNrRlcn/Qm8XrEdlWmHIWPH5sKELkYS7f/o6feP58lznIGVAmVIJU3WLTg5hz51rdAYSn5xJDrVIoEyVGNPBfX4Z7zGDp+OlemsVAHSxF6pTY98+6lg==';
            }
            
            if (navigator.userAgent.indexOf("Chrome") > 0)  //Chrome
            {
                objAuth.GetUserNameEx(scope, authCode);
            }
            else {
                //Open the dog
                stat = objAuth.Open(scope, authCode);
                if (0 != stat)
                {
                    reportStatus(stat);
                    throw ("Open Dog Error!");
                }

                //Get username from the dog
                stat = objAuth.GetUserName();
                if (0 != stat)
                {
                    objAuth.Close();
                    reportStatus(stat);
                    throw ("Get Dog Username Error!");
                }

                document.getElementById("username").value = objAuth.UserNameStr;
                objAuth.Close();
            }
        }
        catch(e)
        {
        }
      </script>